# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-bottle-sqlalchemy
_pkgname=bottle-sqlalchemy
pkgver=0.4.3
pkgrel=3
pkgdesc="Bottle SQLAlchemy integration plugin"
options="!check" # No testsuite in tarballs or usable github tarballs
url="http://www.github.com/iurisilvio/bottle-sqlalchemy"
arch="noarch"
license="MIT"
depends="python3 py3-bottle py3-sqlalchemy"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

replaces="py-bottle-sqlalchemy" # Backwards compat
provides="py-bottle-sqlalchemy=$pkgver-r$pkgrel" # Backwards compat

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="3b7eeafa1d8dcd5864b2a132ccf68eb0dfa738c090101615d0cef68f5b0f1efc2cecd66d34be59ac46aaa14c939e2bf7eeb0b6a8932921fa2bd11dc2dcf3a3aa  bottle-sqlalchemy-0.4.3.tar.gz"
